Chat Support
Loupe - Log - Monitor - Resolve
Gibraltar.Server.Client Namespace / WebChannel Class / DownloadData Method / DownloadData(String,IList<NameValuePair<String>>,Nullable<Int32>) Method
Extra headers to add to the request
Optional. The number of seconds to wait for a response to the request.

DownloadData(String,IList<NameValuePair<String>>,Nullable<Int32>) Method
Downloads the resource with the specified URI to a byte array
Syntax
'Declaration
 
<AsyncStateMachineAttribute(Gibraltar.Server.Client.WebChannel/d__61)> 
Public Overloads Function DownloadData( _ 
   ByVal relativeUrl As String, _ 
   ByVal additionalHeaders As IList(Of NameValuePair(Of String)), _ 
   ByVal timeout As Nullable(Of Integer) _ 
) As Task(Of Byte())
 

Parameters

relativeUrl
additionalHeaders
Extra headers to add to the request
timeout
Optional. The number of seconds to wait for a response to the request.

Return Value

A byte array containing the body of the response from the resource
Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also